package com.atguigu.test.boot.annotation;

import com.atguigu.test.config.MyConditionalOnMissClass;
import org.springframework.context.annotation.Conditional;

import java.lang.annotation.*;

/**
 * @author zp
 * @version 1.0
 * @description: 自定义Conditional注解 类不存在注入
 * @date 2023/2/9 18:41
 */
@Target({ElementType.TYPE,ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Conditional(MyConditionalOnMissClass.class)
public @interface MyConditionalOnMissBean {
    Class<?> className();
}
